.auto-solver {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

@media (max-width: 1024px) {
    .auto-solver {
        grid-template-columns: 1fr;
    }
}

.solve-section {
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.solve-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5em;
}

.solve-section h2 i {
    color: #3498db;
}

.description {
    color: #666;
    margin-bottom: 20px;
}

.warning {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e67e22;
    margin-top: 10px;
}

.warning i {
    font-size: 1.2em;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #34495e;
    font-weight: bold;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group textarea {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    min-height: 38px;
    resize: vertical;
}

.input-group .button {
    padding: 5px 10px;
    height: 38px;
}

.input-group .button i {
    font-size: 1.2em;
}

.status-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.status-section.running {
    background-color: #e8f5e9;
}

.status-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-item .button {
    padding: 5px 10px;
    margin-left: 10px;
    font-size: 0.9em;
}

.status-item .button i {
    margin-right: 5px;
}

.status-label {
    color: #666;
    font-weight: bold;
}

.status-value {
    color: #2c3e50;
    font-weight: bold;
}

.status-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5em;
}

.status-section h2 i {
    color: #3498db;
}

.log-container {
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #e9ecef;
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f1f3f5;
    border-bottom: 1px solid #e9ecef;
    border-radius: 8px 8px 0 0;
}

.log-header span {
    font-weight: bold;
    color: #2c3e50;
}

.log-content {
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
    font-family: monospace;
    white-space: pre-wrap;
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.5;
}

.log-entry {
    margin-bottom: 5px;
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    /* font-weight: bold; */
}

.log-entry.success {
    color: #28a745;
}

.log-entry.error {
    color: #dc3545;
}

.log-entry.warning {
    color: #ffc107;
}

.log-entry.info {
    color: #17a2b8;
}

.log-entry.debug {
    color: #6c757d;
}

.control-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.button.success {
    background-color: #2ecc71;
}

.button.success:hover {
    background-color: #27ae60;
}

.button.danger {
    background-color: #e74c3c;
}

.button.danger:hover {
    background-color: #c0392b;
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.modal.show {
    transform: translateY(0);
    opacity: 1;
}

.modal-icon {
    text-align: center;
    font-size: 3em;
    margin-bottom: 20px;
}

.modal.success .modal-icon {
    color: #2ecc71;
}

.modal.error .modal-icon {
    color: #e74c3c;
}

.modal-content {
    text-align: center;
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 1.1em;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    justify-content: center;
}

.modal-button {
    padding: 10px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
    font-family: inherit;
}

.modal-button.primary {
    background-color: #3498db;
    color: white;
}

.modal.success .modal-button.primary {
    background-color: #2ecc71;
}

.modal.success .modal-button.primary:hover {
    background-color: #27ae60;
}

.modal.error .modal-button.primary {
    background-color: #e74c3c;
}

.modal.error .modal-button.primary:hover {
    background-color: #c0392b;
}
